package com.smxy.mall.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.lang.NonNull;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;

@ApiModel()
@Data
public class OrderReq {
    @NotNull(message = "缺少店铺id")
    private Integer shopId;  //收货地址
    @NotNull(message = "缺少商品信息")
    @NotBlank(message = "缺少商品信息~")
    private String goodsId;  //商品数组JSON字符串数组
    @NotNull(message = "缺少地址id")
    private Integer addressId;  //收货地址
    @NotNull(message = "缺少优惠券id")
    private Integer couponId; //优惠券id
    @NotNull(message = "缺少订单类型")
    private Integer orderType; //1配送 2自取
    @NotNull(message = "缺少支付方式")
    private Integer payType; //支付方式
    private String time;
}
